from django.urls import path
from rest_framework_jwt.views import obtain_jwt_token

from .views import *

urlpatterns = [
    path('register/', RegisterView.as_view()),
    path('retrievePassword/', RetrievePasswordView.as_view()),
    path('login/', LoginView.as_view()),
    path('getPersonalInformation/',GetPersonalInformationView.as_view()),
    path('editPersonalInformation/',EditPersonalInformationView.as_view()),
    path('editPassword/',EditPasswordView.as_view()),
    path('getPaperCollection/',GetPaperCollectionView.as_view()),
    path('getNoteCollection/',GetNoteCollectionView.as_view()),
    path('getNote/',GetNoteView.as_view()),
    path('getSet/',GetSetView.as_view()),
    path('editSet/',EditSetView.as_view()),
    path('getPaperComment/',GetPaperCommentView.as_view()),
    path('getNoteComment/',GetNoteCommentView.as_view()),
    path('delPaperCollection/',DelPaperCollectionView.as_view()),
    path('delNoteCollection/',DelNoteCollectionView.as_view()),
    path('delNote/', DelNoteView.as_view()),
    path('delComment/', DelCommentView.as_view()),
    path('searchPaperCollection/', SearchPaperCollectionView.as_view()),
    path('searchNoteCollection/', SearchNoteCollectionView.as_view()),
    path('searchNote/', SearchNoteView.as_view()),
    path('searchPaperComment/', SearchPaperCommentView.as_view()),
    path('searchNoteComment/', SearchNoteComment.as_view()),
    path('upload_profile/', UploadProfile.as_view()),
    path('getSubscribe/',GetSubscribeView.as_view()),
    path('delSubscribe/',DelSubscribeView.as_view()),
    path('searchSubscribe/',SearchSubscribeView.as_view()),
    path('indexSubscribeNote/',IndexSubscribeNoteView.as_view()),
    path('indexSubscribePaper/',IndexSubscribePaperView.as_view()),
    path('getCommentToMe/',GetCommentToMeView.as_view()),
    path('judgeIsMyself/',JudgeIsMyselfView.as_view()),
    path('esToUser/',EsToUserView.as_view()),
    path('userToEs/',UserToEsView.as_view()),
    path('claimAuthor/',ClaimAuthorView.as_view())
]
